//
//  PlaceCollectionViewCell.m
//  FruitVIP
//
//  Created by 孙艳玲 on 15/5/29.
//  Copyright (c) 2015年 孙艳玲. All rights reserved.
//

#import "PlaceCollectionViewCell.h"

#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)
#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)

@implementation PlaceCollectionViewCell

-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSub];
    }
    return self;
}

- (void)createSub
{
    
    UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_WIDTH * 0.37)];
//    imageView.backgroundColor = [UIColor yellowColor];
    imageView.userInteractionEnabled = YES;
    [self.contentView addSubview:imageView];
    UIImage *image = [UIImage imageNamed:@"firstPage.png"];
    imageView.image = image;
}
@end
